package shixun;

import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;


public class NoteTest extends BaseDriver{

	
	ChatPage chat_page;
	
	
	@BeforeMethod
	public void init() throws InterruptedException {
		chat_page=new ChatPage(driver);
	}
	
//	1.登录
	
	@Test(priority = 1)
	public void test1() throws InterruptedException {
		chat_page.login();
	}
	
	
//	2.系统发送内容
	@Test(priority = 2)
	public void test2() throws Exception {
		chat_page.systemChat();
	}
	
//	3.撤回系统聊天界面发送的内容
	@Test(priority = 3)
	public void test3() throws Exception {
		chat_page.systemDrawback();
	}
	
//	4.复制系统聊天界面发送的内容
	@Test(priority = 4)
	public void test4() throws Exception {
		chat_page.systemCopy();
	}
	
//	5.转发系统聊天界面发送的内容到admin
	@Test(priority = 5)
	public void test5() throws Exception {
		chat_page.systemRelay();
	}
	
//	6.在聊天界面搜索用户user1
	@Test(priority = 6)
	public void test6() throws Exception {
		chat_page.searchUser1();
	}
	
//	7.与用户user，user2，user3，创建聊天群组，名称为users
	@Test(priority = 7)
	public void test7() throws Exception {
		chat_page.build();
	}
	
//	8.将聊天群组user123重命名为“用户组123”
	@Test(priority = 8)
	public void test8() throws Exception {
		chat_page.renameUser123();
	}
	
//	9.在通讯录界面收藏用户user1
	@Test(priority = 9)
	public void test9() throws Exception {
		chat_page.startUser1();
	}
	
//	10.退出
	@Test(priority = 10)
	public void test10() throws Exception {
		chat_page.logoutAdmin();
	}
	
}
